﻿<Window x:Class="Historia.Formulaires.frmProjet"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Projet" WindowStartupLocation="CenterScreen" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" MinHeight="513" Width="864" Background="WhiteSmoke" d:DesignHeight="621" SizeToContent="Height" Icon="/Historia;component/Images/logo.ico">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
        </Grid.RowDefinitions>
        <DockPanel LastChildFill="True" Grid.Row="0">
        <GroupBox Header="Information">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="300*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <Label Grid.Column="0" Grid.Row="0">Titre</Label>
                <TextBox Grid.Column="1" Grid.Row="0" Name="txtTitre" Width="300" MaxLength="255"></TextBox>
                <Label Grid.Column="0" Grid.Row="1">Auteur</Label>
                <TextBox Grid.Column="1" Grid.Row="1" Name="txtAuteur" Width="300" MaxLength="50"></TextBox>
                <Label Grid.Column="0" Grid.Row="2">Alias</Label>
                <TextBox Grid.Column="1" Grid.Row="2" Name="txtAlias" Width="300" MaxLength="50"></TextBox>
                <Label Grid.Column="0" Grid.Row="3">Dicipline</Label>
                <ComboBox Grid.Column="1" Grid.Row="3" Name="cboDicipline" Width="300" IsEditable="True">
                    <ComboBoxItem Content="Biographie" />
                    <ComboBoxItem Content="Conte" />
                    <ComboBoxItem Content="Film" />
                    <ComboBoxItem Content="Nouvelle" />
                    <ComboBoxItem Content="Roman" />
                    <ComboBoxItem Content="Télé-Série" />
                </ComboBox>
                <Label Grid.Column="0" Grid.Row="4">Style</Label>
                <ComboBox Grid.Column="1" Grid.Row="4" Name="cboStyle" Width="300" IsEditable="True">
                    <ComboBoxItem Content="Aventure" />
                    <ComboBoxItem Content="Érotique" />
                    <ComboBoxItem Content="Fantastique" />
                    <ComboBoxItem Content="Historique" />
                    <ComboBoxItem Content="Humoristique" />
                    <ComboBoxItem Content="Jeunesse" />
                    <ComboBoxItem Content="Policier" />
                    <ComboBoxItem Content="Populaire" />
                    <ComboBoxItem Content="Science-Fiction" />
                    <ComboBoxItem Content="Sentimental" />
                </ComboBox>
                <Label Grid.Column="0" Grid.Row="5">Date Début</Label>
                <DatePicker Grid.Column="1" Grid.Row="5" Name="dtpDateDebut" IsEnabled="False"></DatePicker>
                <Label Grid.Column="0" Grid.Row="6">Date Fin</Label>
                <DatePicker Grid.Column="1" Grid.Row="6" Name="dtpDateFin"></DatePicker>
                    <Label Grid.Column="0" Grid.Row="7">Image</Label>
                    <Image Grid.Column="1" Grid.Row="7" Name="imgProjet" MinHeight="200" MinWidth="200" MaxWidth="200" MaxHeight="200" Margin="3" Stretch="Uniform" Source="/Historia;component/Images/ImageNone.png" />
                    <Button Name="btnChangerImage" Grid.Column="1" Grid.Row="8" MaxWidth="200" Click="btnChangerImage_Click">Changer l'image</Button>
                    <Button Name="btnRemoveImage" Grid.Column="1" Grid.Row="9" MaxWidth="200" Click="btnRemoveImage_Click">Enlever l'image</Button>
                </Grid>
        </GroupBox>
        <GroupBox Header="Synopsys" Grid.Column="2" Grid.RowSpan="7" Width="auto" VerticalAlignment="Stretch" Height="auto">
            <TextBox Name="txtSynopsys" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" VerticalScrollBarVisibility="Auto" ClipToBounds="True" VerticalAlignment="Stretch"></TextBox>
        </GroupBox>
</DockPanel>
        <StackPanel Orientation="Horizontal" FlowDirection="RightToLeft" HorizontalAlignment="Center" Grid.Column="0" Grid.Row="1" Margin="5">
            <Button Name="btnAnnuler" Click="btnAnnuler_Click" MinWidth="75" HorizontalAlignment="Stretch">Annuler</Button>
            <Button Name="btnOK" Click="btnOK_Click" MinWidth="75" Margin="5,0,0,0" IsTabStop="False" HorizontalAlignment="Stretch">OK</Button>
        </StackPanel>
    </Grid>
</Window>
